Skip to main content
Version: 1.x.x

QueueRequest


import { QueueRequest } from "@hyper-fetch/react"

Description

Defined in hooks/use-queue/use-queue.types.ts:7

Preview

type QueueRequest<Command> = DispatcherDumpValueType<Command> & { deleteRequest: () => void; downloading?: FetchProgressType; startRequest: () => void; stopRequest: () => void; uploading?: FetchProgressType };

Structure

{
commandDump: CommandDump<Command>;
requestId: string;
retries: number;
stopped: boolean;
timestamp: number;
deleteRequest: () => void;
downloading: {
loaded: number;
progress: number;
sizeLeft: number;
startTimestamp: number;
timeLeft: number | null;
total: number;
};
startRequest: () => void;
stopRequest: () => void;
uploading: {
loaded: number;
progress: number;
sizeLeft: number;
startTimestamp: number;
timeLeft: number | null;
total: number;
};
}